package com.jews.mongodb.support;

import java.util.function.Supplier;

/**
 * 装载接口
 * @author JewsChen
 * @title: Loader
 * @date 2022/11/28 23:23
 */
public interface Loader<T, ID> {

    UpdateHandler<T> loadById(ID id);

    UpdateHandler<T> load(Supplier<T> t);
}
